package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 咨询师信息表
 * </p>
 *
 * @author hyb
 * @since 2024-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Doctor implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 咨询师账号
     */
    @TableId(value = "doctor_id", type = IdType.AUTO)
    private Integer doctorId;

    /**
     * 用于登录的密码
     */
    private String password;

    /**
     * 咨询师姓名
     */
    private String name;

    /**
     * 0女，1男
     */
    private Integer sex;

    /**
     * 咨询师年龄
     */
    private Integer age;

    /**
     * 咨询师电话
     */
    private String phone;

    /**
     * 咨询师电子邮件
     */
    private String email;

    /**
     * 咨询方向
     */
    private String skill;

    /**
     * 展示给来访者的 个人照片 在服务端的地址
     */
    private String img;

    /**
     * 咨询师账户状态  0停用，1激活
     */
    private Integer isActive;

    /**
     * 记录最后更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 记录创建时间
     */
    private LocalDateTime createTime;
    public Doctor(Integer doctorId, String password,String name,Integer sex,String phone,String email,String skill,String img) {
        this.doctorId = doctorId;
        this.password = password;
        this.name = name;
        this.sex=sex;
        this.phone=phone;
        this.email=email;
        this.skill=skill;
        this.img=img;
        this.isActive=1;
        this.createTime = LocalDateTime.now();
        this.updateTime = LocalDateTime.now();
    }


}
